#include<stdio.h>'
int main()
{
	int n,i,A,B;
	int sum = 0;
	scanf("%d",&n);
	for(i = 0;i<n;i++)
	{
		scanf("%d %d",&A,&B);
		 sum = A + B;
		 printf("%d\n",sum);
	}
	
	return 0;
}
